package com.code.lightning.commander;

import com.beust.jcommander.Parameter;

/**
 * 命令行配置
 * @author LGX_TvT
 * @date 2021-02-11 0:21
 */
public class Command {

    @Parameter(names={"-c","--config"}, description="配置文件路径.", required=true)
    private String config;

    @Parameter(names={"-s","--sqlCli"}, description="简单SQL执行命令控制台，可执行INSERT, DELETE, UPDATE, SELECT.")
    private boolean sqlCli;

    @Parameter(names={"-g","--generator"}, description="根据配置文件生成代码.")
    private boolean generator;

    @Parameter(names={"-h", "--help"}, description="查看命令文档", help=true)
    private boolean help;

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public boolean isSqlCli() {
        return sqlCli;
    }

    public void setSqlCli(boolean sqlCli) {
        this.sqlCli = sqlCli;
    }

    public boolean isGenerator() {
        return generator;
    }

    public void setGenerator(boolean generator) {
        this.generator = generator;
    }

    public boolean isHelp() {
        return help;
    }

    public void setHelp(boolean help) {
        this.help = help;
    }
}
